﻿' ///////////////////////////////////////////////////////////////
' // This is generated code. 
' //////////////////////////////////////////////////////////////
' // Code is generated using LLBLGen Pro version: 2.6
' // Code is generated on: lundi 28 septembre 2009 23:24:55
' // Code is generated using templates: SD.TemplateBindings.SharedTemplates.NET20
' // Templates vendor: Solutions Design.
' // Templates version: 
' //////////////////////////////////////////////////////////////
Imports System
Imports Aricie.DNN.Services.Url.FriendlyUrl
Imports Aricie.DNN.Services.Url.FriendlyUrl.HelperClasses
Imports SD.LLBLGen.Pro.ORMSupportClasses

Namespace Aricie.DNN.Services.Url.FriendlyUrl.FactoryClasses
	''' <summary>Factory class for IEntityField2 instances, used in IEntityFields2 instances.</summary>
	Public Class EntityFieldFactory
		''' <summary>Private CTor, no instantiation possible.</summary>
		Private Sub New()
		End Sub

	
		''' <summary>Creates a new IEntityField2 instance for usage in the EntityFields object for the FupPatternMappingEntity. Which EntityField is created is specified by fieldIndex</summary>
		''' <param name="fieldIndex">The field which IEntityField2 instance should be created</param>
		''' <returns>The IEntityField2 instance for the field specified in fieldIndex</returns>
		Public Shared Function Create(fieldIndex As FupPatternMappingFieldIndex) As IEntityField2
			Return New EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo("FupPatternMappingEntity", CInt(fieldIndex)))
		End Function

		''' <summary>Creates a new IEntityField2 instance for usage in the EntityFields object for the FupUrlMappingEntity. Which EntityField is created is specified by fieldIndex</summary>
		''' <param name="fieldIndex">The field which IEntityField2 instance should be created</param>
		''' <returns>The IEntityField2 instance for the field specified in fieldIndex</returns>
		Public Shared Function Create(fieldIndex As FupUrlMappingFieldIndex) As IEntityField2
			Return New EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo("FupUrlMappingEntity", CInt(fieldIndex)))
		End Function



		''' <summary>Creates a New IEntityField2 instance, which represents the field objectName.fieldName</summary>
		''' <param name="objectName">the name of the Object the field belongs To, like CustomerEntity Or OrdersTypedView</param>
		''' <param name="fieldName">the name of the field To create</param>
		Public Shared Function Create(objectName As String, fieldName As String) As IEntityField2
			Return New EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo(objectName, fieldName))
        End Function

#Region "Included Code"

#End Region
	End Class
End Namespace
